import request from "@/utils/request";

// 查询分切纸列表
export function listSlitPaper(query) {
  return request({
    url: "/slitPaper/list",
    method: "get",
    params: query,
  });
}

// 新增分切纸
export function addSlitPaper(data) {
  return request({
    url: "/slitPaper",
    method: "post",
    data: data,
  });
}

// 删除分切纸
export function delSlitPaper(id) {
  return request({
    url: "/slitPaper/" + id,
    method: "delete",
  });
}

// 宽幅是否存在
export function existByWide(wide) {
  return request({
    url: "/slitPaper/existByWide?wide=" + wide,
    method: "get",
  });
}

// 分切纸下拉数据
export function slitPaperSelectList(wide) {
  return request({
    url: "/slitPaper/slitPaperSelectList",
    method: "get",
  });
}
